﻿@model dynamic

@{
    ViewBag.Title = "title";
    Layout = "../_Layout.cshtml";
}



<h4 class="page-header">Report</h4>

@using (Html.BeginForm("Preview", "Report", FormMethod.Post, new {target = "_blank"}))
{

    <button name="action:Preview" type="submit" class="btn btn-info" data-loading-text="Wait...">Preview</button>
    @*<button name="action:Kaydet" type="submit" class="btn btn-primary" data-loading-text="Bekleyiniz...">Kaydet</button>*@
}
<button class="btn btn-primary" data-toggle="modal" data-target="#raporModal">
    Modal Report Preview
</button>

<div id="raporModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">Report</h4>
            </div>
            <div class="modal-body">
                <iframe src="~/Temp/Onizleme.pdf" width="100%" scrolling="auto" height="500px"></iframe>
            </div>
        </div>
    </div>
</div>
